package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.server.pojo.AdminRole;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2020-10-15
 */
public interface AdminRoleMapper extends BaseMapper<AdminRole> {

    //根据操作员id删除角色
    Integer deleteByAdminId(Integer adminId);
    //根据操作员id查询角色个数
    Integer getCountByAdminId(Integer adminId);
    //添加AdminRole
    Integer insertAdminRole(AdminRole adminRole);
    //获取拥有该角色的adminId集合
    List<Integer> selectAdminIdsByRoleId(Integer rid);
}
